<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace app\assets;

use yii\web\AssetBundle;
use yii\web\View;

/**
 * 对应前台资源配置
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class FrontAsset extends BaseAsset
{

    public function __construct(array $config = [])
    {
        parent::__construct($config);

        // [CSS]样式文件
        $this->css = array_merge($this->css, [
            ['/css/front/inside.css', 'position' => View::POS_END],
            ['/css/front/swiper.min.css', 'position' => View::POS_END],
            ['/css/front/public.css', 'position' => View::POS_END],
            ['/css/front/index.css', 'position' => View::POS_END],
        ]);
        // [JS]样式文件
        $this->js = array_merge($this->js, [
            ['/js/front/jquery-3.6.0.min.js', 'position' => View::POS_HEAD],
            ['/js/front/swiper.min.js', 'position' => View::POS_HEAD],
            ['/js/front/public.js', 'position' => View::POS_HEAD],
            ['/js/front/index.js', 'position' => View::POS_HEAD],
        ]);

        // 加入的其他资源
        $this->depends = array_merge($this->depends, [

        ]);
    }
}
